package cn.wei.sdd.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
//@ToString
public enum TransStatusEnum {

//    状态（）
    REFUND(-1, "退款"),
    DRAW(0, "提现"),
    RECHARGE(1, "充值"),
    INCOME(2, "收入"),
    SELL(3,"销售收入")
    ;

    private Integer status;
    private String msg;

    public static String getMsgByStatus(int status) {
        TransStatusEnum arrObj[] = TransStatusEnum.values();
        for (TransStatusEnum obj : arrObj) {
            if (status == obj.getStatus().intValue()) {
                return obj.getMsg();
            }
        }
        return "";
    }
}

